using UnityEngine;
using UBJ.EventKit;


public class RegistDemo : MonoBehaviour
{
    private EventController mDemoEventCtrl;
    
    void Start()
    {
        mDemoEventCtrl = EventManager.Ins.GetEventCtrl("Demo");

        mDemoEventCtrl.RegistEvent("Demo_Test_Event", OnTestEvent);
    }

    void Update()
    {
        
    }

    private void OnTestEvent(object[] args)
    {
        var content = (string)args[0];
        Debug.Log(content);
    }
}
